package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.OrderitemVipchannelMapper;
import com.ktgj.service.domain.OrderitemVipchannel;
import com.ktgj.service.service.IOrderitemVipchannelService;

/**
 * VIP通道订单明细
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class OrderitemVipchannelServiceImpl implements IOrderitemVipchannelService 
{
    @Autowired
    private OrderitemVipchannelMapper orderitemVipchannelMapper;

    /**
     * 查询VIP通道订单明细

     * 
     * @param orderitemvipchannelId VIP通道订单明细
ID
     * @return VIP通道订单明细

     */
    @Override
    public OrderitemVipchannel selectOrderitemVipchannelById(Long orderitemvipchannelId)
    {
        return orderitemVipchannelMapper.selectOrderitemVipchannelById(orderitemvipchannelId);
    }

    /**
     * 查询VIP通道订单明细
列表
     * 
     * @param orderitemVipchannel VIP通道订单明细

     * @return VIP通道订单明细

     */
    @Override
    public List<OrderitemVipchannel> selectOrderitemVipchannelList(OrderitemVipchannel orderitemVipchannel)
    {
        return orderitemVipchannelMapper.selectOrderitemVipchannelList(orderitemVipchannel);
    }

    /**
     * 新增VIP通道订单明细

     * 
     * @param orderitemVipchannel VIP通道订单明细

     * @return 结果
     */
    @Override
    public int insertOrderitemVipchannel(OrderitemVipchannel orderitemVipchannel)
    {
        orderitemVipchannel.setCreateTime(DateUtils.getNowDate());
        return orderitemVipchannelMapper.insertOrderitemVipchannel(orderitemVipchannel);
    }

    /**
     * 修改VIP通道订单明细

     * 
     * @param orderitemVipchannel VIP通道订单明细

     * @return 结果
     */
    @Override
    public int updateOrderitemVipchannel(OrderitemVipchannel orderitemVipchannel)
    {
        orderitemVipchannel.setUpdateTime(DateUtils.getNowDate());
        return orderitemVipchannelMapper.updateOrderitemVipchannel(orderitemVipchannel);
    }

    /**
     * 批量删除VIP通道订单明细

     * 
     * @param orderitemvipchannelIds 需要删除的VIP通道订单明细
ID
     * @return 结果
     */
    @Override
    public int deleteOrderitemVipchannelByIds(Long[] orderitemvipchannelIds)
    {
        return orderitemVipchannelMapper.deleteOrderitemVipchannelByIds(orderitemvipchannelIds);
    }

    /**
     * 删除VIP通道订单明细
信息
     * 
     * @param orderitemvipchannelId VIP通道订单明细
ID
     * @return 结果
     */
    @Override
    public int deleteOrderitemVipchannelById(Long orderitemvipchannelId)
    {
        return orderitemVipchannelMapper.deleteOrderitemVipchannelById(orderitemvipchannelId);
    }

    @Override
    public int updateByOrdervipchannelId(OrderitemVipchannel orderitemVipchannel) {
        return orderitemVipchannelMapper.updateByOrdervipchannelId(orderitemVipchannel);
    }
}
